package com.leyou.item.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: wangzibeng
 * Date: 2019/5/4 0004
 * Time: 16:34
 */

@Table(name = "tb_spec_param")
@Data
public class SpecParam {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;
    /**
     * 商品分类id
     */
    private Long cid;
    /**
     * 规格组ID
     */
    private Long groupId;
    private String name;
    /**
     * 是否是数字类型参数，true或false
     */
    private Boolean numeric;
    /**
     * 数字类型参数的单位，非数字类型可以为空
     */
    private String unit;
    /**
     * 是否是sku通用属性，true或false
     */
    private Boolean generic;
    /**
     * 是否用于搜索过滤，true或false
     */
    private Boolean searching;
    /**
     * 数值类型参数，如果需要搜索，则添加分段间隔值，如CPU频率间隔：0.5-1.0
     */
    private String segments;
    private Date createTime;
    private Date updateTime;
}
